-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix(chart): added environment variables for link service DB parameters in helm chart #90
base: main
Are you sure you want to change the base?
Conversation
Hi @kiyo-s ! Could you explain how you ran into this issue in a bit more detail? Did this just happen on a normal helm deploy using something like Also please have a look at the commit guidelines outlined here and adapt your commit message to make commitlint pass :) |
…ers in helm chart
024eb6e
to
d79cfce
Compare
Hi, @W3D3 !
Yes, that's right. In the end, I used the patch below to set DB_HOST and DB_PORT, and it worked as expected. Please check it. |
That's kind of interesting that using it this way leads to But either way, I like your suggestion as in making these values explicitly passed through the values file / k8s manifests, as we should not rely on skaffold. One small issue with your PR: If you specificy the DB_HOST: "{{ .Values.mariaDB.serviceName }}" Like this: - name: USER_AUTH_SERVICE_ADDRESS
value: {{ quote .Values.likeService.deployment.container.env.USER_AUTH_SERVICE_ADDRESS }}
- name: DB_HOST
- value: {{ quote .Values.likeService.deployment.container.env.DB_HOST }}
+ value: {{ tpl .Values.likeService.deployment.container.env.DB_HOST . }}
- name: DB_PORT
value: {{ quote .Values.likeService.deployment.container.env.DB_PORT }}
- name: MARIADB_PASSWORD
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comment.
Thanks for the comment. |
233a2e4
to
a491481
Compare
@W3D3 |
a491481
to
5c8b6d3
Compare
Sorry, there was a mistake in the commit message and helm chart, so I fixed it. |
To allow reading of another value
5c8b6d3
to
6787a76
Compare
Looks good! Please rebase on latest |
Fixed
php_network_getaddresses
error that occurs when link service deployed with helm connects to database.The detailed error is as follows.
Workaround:
I added env directly by the following command and it solved the problem.
Adding only
DB_HOST
did not resolve the issue, so we also addedDB_PORT
.